<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>个人信息</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <script src="layui/layui.js"></script>
    <script src="jquery-3.6.0.js"></script>
</head>
<body>
<form class="layui-form" action="" lay-filter="example" style="margin-right: 100px;margin-left: 100px;margin-top: 20px">
    <div>
        <fieldset>
            <legend>个人信息</legend>
            <div>
                <div class="layui-form-item" style="float: right">
                    <div class="layui-form-item">
                        <div class="layui-input-inline">
                            <!--/*@thymesVar id="student" type="com.cloudwise.entity.Student"*/-->
                            <img id="uploadStudent" th:src="${student.uploadStudent}">
                        </div>
                    </div>
                </div>
                <div style="float: left">
                    <div class="layui-form-item">
                        <label class="layui-form-label">姓名:</label>
                        <div class="layui-input-block">
                            <input type="text" th:value="${student.name}" name="name" id="name"disabled lay-verify="name"
                                   autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">身份证号码:</label>
                        <div class="layui-input-block">
                            <input id="idCard" type="text" th:value="${student.idCard}" disabled name="idCard"
                                   lay-verify="idCard"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">性别:</label>
                        <div class="layui-input-block">
                            <input id="gender" type="text" th:value="${student.gender}" disabled name="gender"
                                   lay-verify="idCard"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">民族:</label>
                <div class="layui-input-block">
                    <input id="nation" type="text" th:value="${student.nation}" disabled name="nation"
                           lay-verify="nation"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <!--手机-->
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">手机号码:</label>
                    <div class="layui-input-inline">
                        <input type="tel" name="phone" th:value="${student.phone}" disabled lay-verify="required|phone"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
            </div>
            <!--学习类型-->
            <div class="layui-form-item">
                <label class="layui-form-label">学习类型:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${educationType.educationType}" id="businessId"
                           name="businessId" placeholder="" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">贯籍:</label>
                <div class="layui-inline">
                    <input type="text" disabled th:value="${student.nationPlace}" id="nationPlace" name="nationPlace"
                           placeholder="" autocomplete="off"
                           class="layui-input"/>
                </div>

                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">具体地址:</label>
                    <div class="layui-input-block">
                        <input type="text" disabled th:value="${student.area}" id="area" name="area" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">现居住地:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${student.address}" id="address" name="address"
                           autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${student.remark}" id="remark" name="remark"
                           autocomplete="off"
                           class="layui-input">
                </div>
            </div>
        </fieldset>
        <fieldset>
            <legend>学历</legend>
            <div class="layui-form-item">
                <label class="layui-form-label">毕业院校:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${student.graduateSchool}" id="graduateSchool"
                           name="graduateSchool" autocomplete="off"
                           class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">毕业证书编号:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${student.idDiploma}" id="idDiploma" name="idDiploma"
                           autocomplete="off"
                           class="layui-input">
                </div>
            </div>
        </fieldset>
        <fieldset>
            <legend>报考</legend>
            <div class="layui-form-item">
                <label class="layui-form-label">报考学校:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${student.school}" id="school" name="school"
                           autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">报考专业:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${student.major}" id="major" name="major" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">层次:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${student.degree}" id="degree" name="degree"
                           autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">前置学历:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${student.frontDegree}" id="frontDegree" name="frontDegree"
                           autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">前置学历专业:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${student.frontDegreeMajor}" id="frontDegreeMajor"
                           name="frontDegreeMajor" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">毕业时间:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${#dates.format(student.dateGraduate,'yyyy-MM-dd HH:mm:ss')}"
                           id="dateGraduate" name="dateGraduate" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">招生老师:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${student.teacher}" id="teacher" name="teacher"
                           autocomplete="off"
                           class="layui-input">
                </div>
            </div>
        </fieldset>
        <fieldset>
            <legend>报名信息</legend>
            <div class="layui-form-item">
                <label class="layui-form-label">报名状态:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${audit.status}" id="status" name="status" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
        </fieldset>
        <fieldset>
            <legend>缴费信息</legend>
            <div class="layui-form-item">
                <label class="layui-form-label">是否缴费:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${audit.paymentStatus}==0?'未缴费':'已缴费'" id="paymentStatus"
                           name="paymentStatus" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">缴费时间:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${audit.paymentTime}" id="paymentTime" name="paymentTime"
                           autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">缴费金额:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${audit.paymentAmount}" id="paymentAmount"
                           name="paymentAmount" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">支付编号:</label>
                <div class="layui-input-block">
                    <input type="text" disabled th:value="${audit.paymentNumber}" id="paymentNumber"
                           name="paymentNumber" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
        </fieldset>
        <fieldset>
            <legend>证明</legend>
            <div class="layui-form-item">
                <label class="layui-form-label">身份证正面:</label>
                <div class="layui-input-block">
                    <img id="uploadIdcardFront" th:src="${student.uploadIdcardFront}"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">身份证反面:</label>
                <div class="layui-input-block">
                    <img id="uploadIdcardBack" th:src="${student.uploadIdcardBack}"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">毕业证书照片:</label>
                <div class="layui-input-block">
                    <img id="uploadDiploma" th:src="${student.uploadDiploma}"/>
                </div>
            </div>
        </fieldset>
    </div>
    <button id="downLoadContract" type="button" class="layui-btn layui-btn-fluid">下载电子合同</button>
</form>
</body>
<script>
    layui.use(['form'], function () {

    });
    $("#downLoadContract").click(function (){
        window.open("http://127.0.0.1:8080/hetong?id="+data.name)
        //window.open($("#uploadDiploma").attr("src"));
    })
</script>
</html>